﻿using System;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HFW.Share;

namespace HFW.ADM
{
    public partial class frmAbout : BaseForm
    {

        public frmAbout()
        {
            InitializeComponent();
            FileVersionInfo finfo = FileVersionInfo.GetVersionInfo(Application.ExecutablePath);
            lblProductInfo.Text = finfo.ProductName + "\nPhiên bản : " + finfo.FileVersion + " \n" + finfo.LegalCopyright;
            HdHoan.ModifyRegistry mrg = new HdHoan.ModifyRegistry();
            string strLC = "";
            try
            {
                strLC = mrg.Read("LICENSE").Trim();
            }
            catch (Exception)
            {

                strLC = "";
            }
            if (strLC.Equals(""))
            {
                lblRegInfo.Text  = "Unregister";
            }
            else
            {
                lblRegInfo.Text = strLC;
            }
            lbTitle.Text = Applications.APPLICATION_NAME;

            
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
